<?php
	namespace app\index\model;
	use think\Model;
	class adminmsg extends Model{
		protected $autoWriteTimestamp = false;
		protected $auto = ['frequency'=>0];
		protected function getTimeAttr($value){
			return date("Y-m-d ",$value);

		}
		protected function getTypeAttr($value){
			return $value=='1'?'最新新闻':'优惠政策';
		}
	}
?>